home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 September / PCWorld_2008-09_cd.bin / multimedia / tuxpaint / tuxpaint-0.9.20-win32-installer.exe / {app} / docs / EXTENDING.txt < prev    next >
Text File  |  2008-07-01  |  29KB  |  663 lines

  1.                                    Tux Paint
  2.                                  version 0.9.20
  3.                               Extending Tux Paint
  4.  
  5.                 Copyright 2002-2008 by Bill Kendrick and others
  6.                                New Breed Software
  7.  
  8.                            bill@newbreedsoftware.com
  9.                             http://www.tuxpaint.org/
  10.  
  11.                          June 14, 2002 - March 27, 2008
  12.  
  13.    --------------------------------------------------------------------------
  14.  
  15.    If you wish to add or change things like Brushes and Rubber Stamps used by
  16.    Tux Paint, you can do it fairly easily by simply putting or removing files
  17.    on your hard disk.
  18.  
  19.    Note: You'll need to restart Tux Paint for the changes to take effect.
  20.  
  21. Where Files Go
  22.  
  23.   Standard Files
  24.  
  25.        Tux Paint looks for its various data files in its 'data' directory.
  26.  
  27.     Linux and Unix
  28.  
  29.          Where this directory goes depends on what value was set for
  30.          "DATA_PREFIX" when Tux Paint was built. See INSTALL.txt for details.
  31.  
  32.          By default, though, the directory is:
  33.  
  34.            /usr/local/share/tuxpaint/
  35.  
  36.          If you installed from a package, it is more likely to be:
  37.  
  38.            /usr/share/tuxpaint/
  39.  
  40.     Windows
  41.  
  42.          Tux Paint looks for a directory called 'data' in the same directory
  43.          as the executable. This is the directory that the installer used
  44.          when installing Tux Paint e.g.:
  45.  
  46.            C:\Program Files\TuxPaint\data
  47.  
  48.     Mac OS X
  49.  
  50.          Tux Paint stores its data files inside the "Tux Paint" icon (which
  51.          is actually a special kind of folder on Mac OS X). The following
  52.          steps explain how to get to the folders within:
  53.  
  54.           1. Bring up a 'context' menu by holding the [Control] key and
  55.              clicking the Tux Paint icon the in Finder. (If you have a mouse
  56.              with more than one button, you can simply right-click the icon.)
  57.           2. Select "Show Contents" from the menu that appears. A new Finder
  58.              window will appear with a folder inside called "Contents."
  59.           3. Open the "Contents" folder and open the "Resources" folder found
  60.              inside.
  61.           4. There, you will find the "starters", "stamps" and "brushes"
  62.              folders. Adding new content to these folders will make the
  63.              content available to any user that launches this copy (icon) of
  64.              Tux Paint.
  65.  
  66.          Note: If you install a newer version of Tux Paint (by replacing its
  67.          icon), you will lose changes made by following the instructions
  68.          above, so keep backups of your new content (stamps, brushes, etc.).
  69.  
  70.          Tux Paint also looks for files in a "TuxPaint" folder that you can
  71.          place in your system's "Application Support" folder (found under
  72.          "Library" at the root of your hard disk):
  73.  
  74.            /Library/Application Support/TuxPaint/
  75.  
  76.          It also looks for files in the user's "Preferences" folder, e.g.:
  77.  
  78.            /Users/(user name)/Library/Preferences/TuxPaint/brushes/
  79.  
  80.    --------------------------------------------------------------------------
  81.  
  82.   Personal Files
  83.  
  84.        You can also create brushes, stamps, fonts and 'starters' in your own
  85.        directory (folder) for Tux Paint to find.
  86.  
  87.     Windows
  88.  
  89.          Your personal Tux Paint folder is stored in your "Application Data".
  90.          For example, on newer Windows (set up for an English-speaking user):
  91.  
  92.            C:\Documents and Settings\(user name)\Application Data\TuxPaint\
  93.  
  94.     Mac OS X
  95.  
  96.          Your personal Tux Paint folder is stored in your "Library" folder:
  97.  
  98.            /Users/(user name)/Library/Application Support/ Tux Paint/
  99.  
  100.     Linux and Unix
  101.  
  102.          Your personal Tux Paint directory is "$(HOME)/.tuxpaint/" (also
  103.          known as "~/.tuxpaint/".
  104.  
  105.          That is, if your home directory is "/home/karl", then your Tux Paint
  106.          directory is "/home/karl/.tuxpaint/".
  107.  
  108.          Don't forget the period (".") before the 'tuxpaint'!
  109.  
  110.        To add brushes, stamps fonts, and 'starters,' create subdirectories
  111.        under your personal Tux Paint directory named "brushes", "stamps",
  112.        "fonts" and "starters" respectively.
  113.  
  114.        (For example, if you created a brush named "flower.png", you would put
  115.        it in "~/.tuxpaint/brushes/" under Linux or Unix.)
  116.  
  117.    --------------------------------------------------------------------------
  118.  
  119. Brushes
  120.  
  121.      The brushes used for drawing with the 'Brush' and 'Lines' tools in
  122.      Tux Paint are simply PNG image files.
  123.  
  124.      The alpha (transparency) of the PNG image is used to determine the shape
  125.      of the brush, which means that the shape can be 'anti-aliased' and even
  126.      partially-transparent!
  127.  
  128.      Greyscale pixels in the brush PNG will be drawn using the
  129.      currently-selected color in Tux Paint. Color pixels will be tinted.
  130.  
  131.      Brush images should be no wider than 40 pixels across and no taller than
  132.      40 pixels high. (i.e., the maximum size can be 40 x 40.)
  133.  
  134.   Brush Options
  135.  
  136.        Aside from a graphical shape, brushes can also be given other
  137.        attributes. To do this, you need to create a 'data file' for the
  138.        brush.
  139.  
  140.        A brush data file is simply a text file containing the options.
  141.  
  142.        The file has the same name as the PNG image, but a ".dat" extension.
  143.        (e.g., "brush.png"'s data file is the text file "brush.dat" in the
  144.        same directory.)
  145.  
  146.     Brush Spacing
  147.  
  148.          As of Tux Paint version 0.9.16, you can now specify the spacing for
  149.          brushes (that is, how often they are drawn). By default, the spacing
  150.          will be the brush's height, divided by 4.
  151.  
  152.          Add a line containing the line "spacing=N" to the brush's data file,
  153.          where N is the spacing you want for the brush. (The lower the
  154.          number, the more often the brush is drawn.)
  155.  
  156.     Animated Brushes
  157.  
  158.          As of Tux Paint version 0.9.16, you may now create animated brushes.
  159.          As the brush is used, each frame of the animation is drawn.
  160.  
  161.          Lay each frame out across a wide PNG image. For example, if your
  162.          brush is 30x30 and you have 5 frames, the image should be 150x30.
  163.  
  164.          Add a line containing the line "frames=N" to the brush's data file,
  165.          where N is the number of frames in the brush.
  166.  
  167.          Note: If you'd rather the frames be flipped through randomly, rather
  168.          than sequentially, also add a line containing "random" to the
  169.          brush's data file.
  170.  
  171.     Directional Brushes
  172.  
  173.          As of Tux Paint version 0.9.16, you may now create directional
  174.          brushes. As the brush is used, different shapes are drawn, depending
  175.          on the direction the brush is going.
  176.  
  177.          The directional shapes are divided into a 3x3 square in a PNG image.
  178.          For example, if your brush is 30x30, the image should be 90x90, and
  179.          each of the direction's shapes placed in a 3x3 grid. The center
  180.          region is used for no motion. The top right is used for motion
  181.          that's both up, and to the right. And so on.
  182.  
  183.          Add a line containing the line "directional" to the brush's data
  184.          file.
  185.  
  186.     Animated Directional Brushes
  187.  
  188.          You may mix both animated and directional features into one brush.
  189.          Use both options ("frames=N" and "directional"), in separate lines
  190.          in the brush's "".dat" file.
  191.  
  192.          Lay the brush out so that each 3x3 set of directional shapes are
  193.          laid out across a wide PNG image. For example, if the brush is 30x30
  194.          and there are 5 frames, it would be 450x90. (The leftmost 150x90
  195.          pixels of the image represent the 9 direction shapes for the first
  196.          frame, for example.)
  197.  
  198.      Place the brush image PNGs (and any data text files) in the "brushes"
  199.      directory.
  200.  
  201.      Note: If your new brushes all come out as solid squares or rectangles,
  202.      it's because you forgot to use alpha transparency! See the documentation
  203.      file "PNG.txt" for more information and tips.
  204.  
  205.    --------------------------------------------------------------------------
  206.  
  207. Stamps
  208.  
  209.      All stamp-related files go in the "stamps" directory. It's useful to
  210.      create subdirectories and sub-subdirectories there to organize the
  211.      stamps. (For example, you can have a "holidays" folder with "halloween"
  212.      and "christmas" sub-folders.)
  213.  
  214.   Images
  215.  
  216.        Rubber Stamps in Tux Paint can be made up of a number of separate
  217.        files. The one file that is required is, of course, the picture
  218.        itself.
  219.  
  220.        As of Tux Paint version 0.9.17, Stamps may be either PNG bitmap images
  221.        or SVG vector images. They can be full-color or greyscale. The alpha
  222.        (transparency) channel of PNGs is used to determine the actual shape
  223.        of the picture (otherwise you'll stamp a large rectangle on your
  224.        drawings).
  225.  
  226.        PNGs can be any size, and Tux Paint (by default) provides a set of
  227.        sizing buttons to let the user scale the stamp up (larger) and down
  228.        (smaller).
  229.  
  230.        SVGs are vector-based, and will be scaled appropriately for the canvas
  231.        being used in Tux Paint.
  232.  
  233.        Note: If your new PNG stamps all have solid rectangular-shaped
  234.        outlines of a solid color (e.g., white or black), it's because you
  235.        forgot to use alpha transparency! See the documentation file "PNG.txt"
  236.        for more information and tips.
  237.  
  238.        Note: If your new SVG stamps seem to have a lot of whitespace, make
  239.        sure the SVG 'document' is no larger than the shape(s) within. If they
  240.        are being clipped, make sure the 'document' is large enough to contain
  241.        the shape(s). See the documentation file "SVG.txt" for more
  242.        information and tips.
  243.  
  244.        Advanced Users: The Advanced Stamps HOWTO describes, in detail, how to
  245.        make PNG images which will scale perfectly when used as stamps in
  246.        Tux Paint.
  247.  
  248.    --------------------------------------------------------------------------
  249.  
  250.   Description Text
  251.  
  252.        Text (".TXT") files with the same name as the PNG or SVG. (e.g.,
  253.        "picture.png"'s description is stored in "picture.txt" in the same
  254.        directory.)
  255.  
  256.        The first line of the text file will be used as the US English
  257.        description of the stamp's image. It must be encoded in UTF-8.
  258.  
  259.     Language Support
  260.  
  261.          Additional lines can be added to the text file to provide
  262.          translations of the description, to be displayed when Tux Paint is
  263.          running in a different locale (like French or Spanish).
  264.  
  265.          The beginning of the line should correspond to the language code of
  266.          the language in question (e.g., "fr" for French, and "zh_tw" for
  267.          Traditional Chinese), followed by ".utf8=" and the translated
  268.          description (encoded in UTF-8).
  269.  
  270.          There are scripts in the "po" directory for converting the text
  271.          files to PO format (and back) for easy translation to different
  272.          languages. Therefore you should never add or change translations in
  273.          the .txt files directly.
  274.  
  275.          If no translation is available for the language Tux Paint is
  276.          currently running in, the US English text is used.
  277.  
  278.     Windows Users
  279.  
  280.          Use NotePad or WordPad to edit/create these files. Be sure to save
  281.          them as Plain Text, and make sure they have ".txt" at the end of the
  282.          filename...
  283.  
  284.    --------------------------------------------------------------------------
  285.  
  286.   Sound Effects
  287.  
  288.        WAVE (".wav") or OGG Vorbis (".ogg") files with the same name as the
  289.        PNG or SVG. (e.g., "picture.svg"'s sound effect is the sound file
  290.        "picture.wav" in the same directory.)
  291.  
  292.     Language Support
  293.  
  294.          For sounds for different locales (e.g., if the sound is someone
  295.          saying a word, and you want translated versions of the word said),
  296.          also create WAV or OGG files with the locale's label in the
  297.          filename, in the form: "STAMP_LOCALE.EXT"
  298.  
  299.          "picture.png"'s sound effect, when Tux Paint is run in Spanish mode,
  300.          would be "picture_es.wav". In French mode, "picture_fr.wav". And so
  301.          on...
  302.  
  303.          If no localized sound effect can be loaded, Tux Paint will attempt
  304.          to load the 'default' sound file. (e.g., "picture.wav")
  305.  
  306.        Note: For descriptive sounds (not sound effects, like a bang or a bird
  307.        chirping), consider using the Descriptive Sounds, described below.
  308.  
  309.    --------------------------------------------------------------------------
  310.  
  311.   Descriptive Sound
  312.  
  313.        WAVE (".wav") or OGG Vorbis (".ogg") files with the same name as the
  314.        PNG or SVG, followed by "_desc" (e.g., "picture.svg"'s descriptive
  315.        sound is the sound file "picture_desc.ogg" in the same directory.)
  316.  
  317.     Language Support
  318.  
  319.          For descriptions in different languages, also create WAV or OGG
  320.          files with both "_desc" and the locale's label in the filename, in
  321.          the form: "STAMP_desc_LOCALE.EXT"
  322.  
  323.          "picture.png"'s descriptive sound, when Tux Paint is run in Spanish
  324.          mode, would be "picture_desc_es.wav". In French mode,
  325.          "picture_desc_fr.wav". And so on...
  326.  
  327.          If no localized descriptive sound can be loaded, Tux Paint will
  328.          attempt to load the 'default' descriptive sound file. (e.g.,
  329.          "picture_desc.wav")
  330.  
  331.    --------------------------------------------------------------------------
  332.  
  333.   Stamp Options
  334.  
  335.        Aside from a graphical shape, a textual description, and a sound
  336.        effect, stamps can also be given other attributes. To do this, you
  337.        need to create a 'data file' for the stamp.
  338.  
  339.        A stamp data file is simply a text file containing the options.
  340.  
  341.        The file has the same name as the PNG or SVG image, but a ".dat"
  342.        extension. (e.g., "picture.png"'s data file is the text file
  343.        "picture.dat" in the same directory.)
  344.  
  345.     Colored Stamps
  346.  
  347.          Stamps can be made to be either "colorable" or "tintable."
  348.  
  349.       Colorable
  350.  
  351.            "Colorable" stamps they work much like brushes - you pick the
  352.            stamp to get the shape, and then pick the color you want it to be.
  353.            (Symbol stamps, like the mathematical and musical ones, are an
  354.            example.)
  355.  
  356.            Nothing about the original image is used except the transparency
  357.            (from "alpha" channel). The color of the stamp comes out solid.
  358.  
  359.            Add a line containing the word "colorable" to the stamp's data
  360.            file.
  361.  
  362.       Tinted
  363.  
  364.            "Tinted" stamps are similar to "colorable" ones, except the
  365.            details of the original image are kept. (To put it technically,
  366.            the original image is used, but its hue is changed, based on the
  367.            currently-selected color.)
  368.  
  369.            Add a line containing the word "tintable" to the stamp's data
  370.            file.
  371.  
  372.         Tinting Options:
  373.  
  374.              Depending on the contents of your stamp, you might want to have
  375.              Tux Paint use one of a numer of methods when tinting it. Add one
  376.              of the following lines to the stamp's data file:
  377.  
  378.              "tinter=normal" (default)
  379.                      This is the normal tinting mode. (Hue range is
  380.                      +/- 18 degrees, 27 replace.)
  381.  
  382.              "tinter=anyhue"
  383.                      This remaps all hues in the stamp. (Hue range is
  384.                      +/- 180 degrees.)
  385.  
  386.              "tinter=narrow"
  387.                      This like 'anyhue', but a narrower hue angle. (Hue range
  388.                      is +/- 6 degrees, 9 replace.)
  389.  
  390.              "tinter=vector"
  391.                      This is map 'black through white' to 'black through
  392.                      destination'.
  393.  
  394.     Unalterable Stamps
  395.  
  396.          By default, a stamp can be flipped upside down, shown as a mirror
  397.          image, or both. This is done using the control buttons below the
  398.          stamp selector, at the lower right side of the screen in Tux Paint.
  399.  
  400.          Sometimes, it doesn't make sense for a stamp to be flippable or
  401.          mirrored; for example, stamps of letters or numbers. Sometimes
  402.          stamps are symmetrical, so letting the user flip or mirror them
  403.          isn't useful.
  404.  
  405.          To make a stamp un-flippable, add the option "noflip" to the stamp's
  406.          data file.
  407.  
  408.          To keep a stamp from being mirrored, add a line containing the word
  409.          "nomirror" to the stamp's data file.
  410.  
  411.     Initial Stamp Size
  412.  
  413.          By default, Tux Paint assumes that your stamp is sized appropriately
  414.          for unscaled display on a 608x472 canvas. This is the original
  415.          Tux Paint canvas size, provided by a 640x480 screen. Tux Paint will
  416.          then adjust the stamp according to the current canvas size and, if
  417.          enabled, the user's stamp size controls.
  418.  
  419.          If your stamp would be too big or too small, you can specify a scale
  420.          factor. If your stamp would be 2.5 times as wide (or tall) as it
  421.          should be, add the option "scale 40%" or "scale 5/2" or "scale 2.5"
  422.          or "scale 2:5" to your image. You may include an "=" if you wish, as
  423.          in "scale=40%".
  424.  
  425.     Windows Users
  426.  
  427.          You can use NotePad or WordPad to create these file. Be sure to save
  428.          it as Plain Text, and make sure the filename has ".dat" at the end,
  429.          and not ".txt"...
  430.  
  431.   Pre-Mirrored and Flipped Images
  432.  
  433.        In some cases, you may wish to provide a pre-drawn version of a
  434.        stamp's mirror-image, flipped image, or even both. For example,
  435.        imagine a picture of a fire truck with the words "Fire Department"
  436.        written across the side. You probably do not want that text to appear
  437.        backwards when the image is flipped!
  438.  
  439.        To create a mirrored version of a stamp that you want Tux Paint to
  440.        use, rather than mirroring one on its own, simply create a second
  441.        ".png" or ".svg" graphics file with the same name, except with
  442.        "_mirror" before the filename extension.
  443.  
  444.        For example, for the stamp "truck.png" you would create another file
  445.        named "truck_mirror.png", which will be used when the stamp is
  446.        mirrored (rather than using a backwards version of 'truck.png').
  447.  
  448.        As of Tux Paint 0.9.18, you may similarly provide a pre-flipped image
  449.        with "_flip" in the name, and/or an image that is both mirrored and
  450.        flipped, by naming it "_mirror_flip".
  451.  
  452.        Note: If the user flips and mirrors an image, and a pre-drawn
  453.        "_mirror_flip" doesn't exist, but either "_flip" or "_mirror" does, it
  454.        will be used, and mirrored or flipped, respectively.
  455.  
  456.    --------------------------------------------------------------------------
  457.  
  458. Fonts
  459.  
  460.      The fonts used by Tux Paint are TrueType Fonts (TTF).
  461.  
  462.      Simply place them in the "fonts" directory. Tux Paint will load the font
  463.      and provide four different sizes in the 'Letters' selector when using
  464.      the 'Text' tool.
  465.  
  466.    --------------------------------------------------------------------------
  467.  
  468. 'Starters'
  469.  
  470.      'Starter' images appear in the 'New' dialog, along with solid color
  471.      background choices. (Note: In earlier versions of Tux Paint, they
  472.      appeared in the 'Open' dialog, together with saved drawings.)
  473.  
  474.      Unlike pictures drawn in Tux Paint by users and then opened later,
  475.      opening a 'starter' creates a new drawing. When you save, the 'starter'
  476.      image is not overwritten. Additionally, as you edit your new picture,
  477.      the contents of the original 'starter' affect it.
  478.  
  479.      Coloring-Book Style
  480.  
  481.        The most basic kind of 'starter' is similar to a picture in a coloring
  482.        book. It's an outline of a shape which you can then color in and add
  483.        details to. In Tux Paint, as you draw, type text, or stamp stamps, the
  484.        outline remains 'above' what you draw. You can erase the parts of the
  485.        drawing you made, but you can't erase the outline.
  486.  
  487.        To create this kind of 'starter' image, simply draw an outlined
  488.        picture in a paint program, make the rest of the graphic transparent
  489.        (that will come out as white in Tux Paint), and save it as a PNG
  490.        format file.
  491.  
  492.        Note: A common mistake is to make the image black and white, rather
  493.        than black and transparent. Unless there are transparent zones in the
  494.        'starter' image, all drawing done by the user in Tux Paint will be
  495.        covered up by the 'starter'.
  496.  
  497.      Scene-Style
  498.  
  499.        Along with the 'coloring-book' style overlay, you can also provide a
  500.        separate background image as part of a 'starter' picture. The overlay
  501.        acts the same: it can't be drawn over, erased, or affected by 'Magic'
  502.        tools. However, the background can be!
  503.  
  504.        When the 'Eraser' tool is used on a picture based on this kind of
  505.        'starter' image, rather than turning the canvas to a solid color, such
  506.        as white, it returns that part of the canvas to the original
  507.        background picture from the 'starter'.
  508.  
  509.        By creating both an overlay and a background, you can create a
  510.        'starter' which simulates depth. Imagine a background that shows the
  511.        ocean, and an overlay that's a picture of a reef. You can then draw
  512.        (or stamp) fish in the picture. They'll appear in the ocean, but never
  513.        'in front of' the reef.
  514.  
  515.        To create this kind of 'starter' picture, simply create an overlay
  516.        (with transparency) as described above, and save it as a PNG. Then
  517.        create another image (without transparency), and save it with the same
  518.        filename, but with "-back" appended to the name. (e.g.,
  519.        "reef-back.png" would be the background ocean picture that corresponds
  520.        to the "reef.png" overlay, or foreground.)
  521.  
  522.      The 'starter' images should be the same size as Tux Paint's canvas. (See
  523.      the "Loading Other Pictures into Tux Paint" section of README for
  524.      details on sizing.) If they are not, they will be stretched, without
  525.      affecting the shape ("aspect ratio"); however some smudging may be
  526.      applied to the edges.
  527.  
  528.      Place them in the "starters" directory. When the 'New' dialog is
  529.      accessed in Tux Paint, the 'starter' images will appear in the screen
  530.      that appears, after the various solid color choices.
  531.  
  532.      Note: 'Starters' can't be saved over from within Tux Paint, since
  533.      loading a 'starter' is really like creating a new image. (Instead of
  534.      being blank, though there's already something there to work with.) The
  535.      'Save' command simply creates a new picture, like it would if the 'New'
  536.      command had been used.
  537.  
  538.      Note: 'Starters' are 'attached' to saved pictures, via a small text file
  539.      that has the same name as the saved file, but with ".dat" as the
  540.      extension. This allows the overlay and background, if any, to continue
  541.      to affect the drawing even after Tux Paint has been quit, or another
  542.      picture loaded or started. (In other words, if you base a drawing on a
  543.      'starter' image, it will always be affected by it.)
  544.  
  545.    --------------------------------------------------------------------------
  546.  
  547. Translations
  548.  
  549.      Tux Paint supports numerous languages, thanks to use of the "gettext"
  550.      localization library. (See OPTIONS for how to change locales in
  551.      Tux Paint.)
  552.  
  553.      To translate Tux Paint to a new language, copy the translation template
  554.      file, "tuxpaint.pot" (found in Tux Paint's source code, in the folder
  555.      "src/po/"). Rename the copy as a ".po" file, with an appropriate name
  556.      for the locale you're translating to (e.g., "es.po" for Spanish; or
  557.      "pt_br.po" for Brazilian Portuguese, versus "pt.po" or "pt_pt.po" for
  558.      Portuguese spoken in Portugal.)
  559.  
  560.      Open the newly-created ".po" file -- you can edit in a plain text
  561.      edtior, such as Emacs, Pico or VI on Linux, or NotePad on Windows. The
  562.      original English text used in Tux Paint is listed in lines starting with
  563.      "msgid". Enter your translations of each of these pieces of text in the
  564.      empty "msgstr" lines directly below the corresponding "msgid" lines.
  565.      (Note: Do not remove the quotes.)
  566.  
  567.      Example:
  568.  
  569.        msgid "Smudge"
  570.        msgstr "Manchar"
  571.  
  572.        msgid "Click and move to draw large bricks."
  573.        msgstr "Haz clic y arrastra para dibujar ladrillos grandes."
  574.  
  575.      A graphical tool, called poEdit (http://www.poedit.net/), is available
  576.      for Linux, Windows and Mac OS X.
  577.  
  578.      Note: It is best to always work off of the latest Tux Paint text catalog
  579.      template ("tuxpaint.pot"), since new text is added, and old text is
  580.      occasionally changed. The text catalog for the upcoming, unreleased
  581.      version of Tux Paint can be found in Tux Paint's CVS repository (see:
  582.      http://www.tuxpaint.org/download/source/cvs/), and on the Tux Paint
  583.      website at http://www.tuxpaint.org/help/po/.
  584.  
  585.      To edit an existing translation, download the latest ".po" file for that
  586.      language, and edit it as described above.
  587.  
  588.      You may send new or edited translation files to Bill Kendrick, lead
  589.      developer of Tux Paint, at: bill@newbreedsoftware.com, or post them to
  590.      the "tuxpaint-i18n" mailing list (see: http://www.tuxpaint.org/lists/).
  591.  
  592.      Alternatively, if you have an account with SourceForge.net, you can
  593.      request to be added to the "tuxpaint" project and receive write-access
  594.      to the CVS source code repository so that you may commit your changes
  595.      directly.
  596.  
  597.      Note: Additional locale support also requires additions to Tux Paint's
  598.      source code (/src/i18n.h and /src/i18n.c), and requires updates to the
  599.      Makefile, to have the ".po" gettext catalog source files compiled into
  600.      ".mo" files, and installed, for use at runtime.
  601.  
  602. Alternative Input Methods
  603.  
  604.      As of version 0.9.17, Tux Paint's "Text" tool can provide alternative
  605.      input methods for some languages. For example, when Tux Paint is running
  606.      with a Japanese locale, the right [Alt] key can be pressed to cycle
  607.      between Latin, Romanized Hiragana and Romanized Katakana modes. This
  608.      allows native characters and words to be entered into the "Text" tool by
  609.      typing one or more keys on a keyboard with Latin characters (e.g., a
  610.      US QWERTY keyboard).
  611.  
  612.      To create an input method for a new locale, create a text file with a
  613.      name based on the locale (e.g., "ja" for Japanese), with ".im" as the
  614.      extension (e.g., "ja.im").
  615.  
  616.      The ".im" file can have multiple character mapping sections for
  617.      different character mapping modes. For example, on a Japanese typing
  618.      system, typing [K] [A] in Hiragana mode generates a different Unicode
  619.      character than typing [K] [A] in Katakana mode.
  620.  
  621.      List the character mappings in this file, one per line. Each line should
  622.      contain (separated by whitespace):
  623.  
  624.        * the Unicode value of the character, in hexadecimal (more than one
  625.          character can be listed, separated by a colon (':'), this allowing
  626.          some sequences to map to words)
  627.        * the keycode sequence (the ASCII characters that must be entered to
  628.          generate the Unicode character)
  629.        * a flag (or "-")
  630.  
  631.      Start additional character mapping sections with a line containign the
  632.      word "section".
  633.  
  634.      Example:
  635.  
  636.        # Hiragana
  637.        304B   ka   -
  638.        304C   ga   -
  639.        304D   ki   -
  640.        304E   gi   -
  641.        304D:3083   kya   -
  642.        3063:305F   tta   -
  643.  
  644.        # Katakana
  645.        section
  646.        30AB   ka   -
  647.        30AC   ga   -
  648.        30AD   ki   -
  649.        30AE   gi   -
  650.  
  651.      Note: Blank lines within the ".im" file will be ignored, as will any
  652.      text following a "#" (pound/hash) character -- it can be used to denote
  653.      comments, as seen in the example above.
  654.  
  655.      Note: Meanings of the flags are locale-specific, and are processed by
  656.      the language-specific source code in "src/im.c". For example, "b" is
  657.      used in Korean to handle Batchim, which may carry over to the next
  658.      character.
  659.  
  660.      Note: Additional input method support also requires additions to
  661.      Tux Paint's source code (/src/im.c), and requires updates to the
  662.      Makefile, to have the ".im" files installed, for use at runtime.
  663.